{if $user}
<div class="block" id="in_personal">
  <div class="block-holder">
	<div class="block-frame">
	  <ul>
		<li><a href="/order_history">Информация о заказах</a></li>
	  </ul>
	</div>
  </div>
</div>
{/if}

<h1>{$name}</h1>
{if isset($persakcio)}
	<img src="/images/banner2.png" />
	<div class="showafterreg"><img src="/images/banner3.png" /></div>
	<div class="deepdark" style="display:block;"></div>
{/if}

<table>
	<tr style="margin-top:20px;">
		<td colspan=2 style="background-color: #ECE3F0; padding:5px; color:#996699; font-weight: bold; border-top:20px solid white;">
			Информация о заказах
		</td>
	</tr>
</table>

<table class="t_orders">
	<tr style="margin-top:20px;">
		<td class="th_id">
			ID
		</td>
		<td class="th_date">
			Дата
		</td>
		<td class="th_status">
			Статус
		</td>
		<td class="th_items">
			Товары
		</td>
	</tr>
	{foreach $view as $item}
		<tr>
			<td class="t_id">{$item['id']}</td>
			<td class="t_date">{$item['created']}</td>
			<td class="t_status">{$item['state']}</td>
			<td class="t_items">{$item['comments']}</td>
		</tr>
	{/foreach}
</table>
